package demo.icanci.pattern.factory.abstractf;

import demo.icanci.pattern.factory.entity.Keyboard;
import demo.icanci.pattern.factory.entity.Mouse;

/**
 * @author icanci
 * @date Created in 2021/02/04 23:19
 * @version 1.0
 */
public class AbstractFactoryDemo {
    public static void main(String[] args) {
        HpComputerFactory hpComputerFactory = new HpComputerFactory();
        Mouse mouse = hpComputerFactory.createMouse();
        Keyboard keyboard = hpComputerFactory.createKeyboard();
        mouse.sayHi();
        keyboard.sayHello();
    }
}
